<?php
include '../Model/Game/OPGame.php';

session_start();

$game = $_SESSION['game'];
$safeHaven = $game->safeHaven($_GET['id']);

$safeHaven->changeOwner();
$game->rebelsFaction()->powerBar()->increaseBy(10);

$_SESSION['game'] = $game;

?>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Capturer un refuge</title>
</head>
<body>

<img src='images/safeHavenPopup.gif'></img>

<script type="text/javascript" >

window.setTimeout("location = ('geolocation.php');", 11000);

</script>

</body>
</html>